package com.usian.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")//
public interface MediaFeign {
    @PostMapping("/api/v1/user/save")
    ResponseResult save(@RequestBody WmUser wmUser);

    @PostMapping("/api/v1/user/update/authorId")
    ResponseResult updateAuthorId(@RequestBody WmUser user);
}
